<?php


namespace App\Http\Middleware;

use Closure;

class Check
{
    public function handle($request, Closure $next)
    {
        if ($request->uid != session('uid')) {
            return redirect('Wno');
        }
        return $next($request);
    }
}
